home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-05-01 | 3.5 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon May 1 19:15:19 1995, modified Mon May 1 19:15:19 1995, creator 'MMCC', type ASCII, 2835 bytes "console.stubs.c" , at 0xb93 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 63 6f 6e 73 6f 6c | 65 2e 73 74 75 62 73 2e |..consol|e.stubs.|
|00000010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 0b 13 00 | 00 01 9a ab cb 1c 07 ab |........|........|
|00000060| cb 1c 07 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 db 00 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 2f 2a 09 50 72 |********|*/./*.Pr|
|000000d0| 6f 6a 65 63 74 2e 2e 2e | 3a 09 53 74 61 6e 64 61 |oject...|:.Standa|
|000000e0| 72 64 20 41 4e 53 49 2d | 43 20 4c 69 62 72 61 72 |rd ANSI-|C Librar|
|000000f0| 79 09 09 09 09 09 09 09 | 09 09 2a 2f 0d 2f 2a 09 |y.......|..*/./*.|
|00000100| 4e 61 6d 65 2e 2e 2e 2e | 2e 2e 3a 09 63 6f 6e 73 |Name....|..:.cons|
|00000110| 6f 6c 65 2e 63 09 09 09 | 09 09 09 09 09 09 09 09 |ole.c...|........|
|00000120| 09 2a 2f 0d 2f 2a 09 50 | 75 72 70 6f 73 65 2e 2e |.*/./*.P|urpose..|
|00000130| 2e 3a 09 53 74 75 62 73 | 20 66 6f 72 20 63 6f 6e |.:.Stubs| for con|
|00000140| 73 6f 6c 65 2e 63 09 09 | 09 09 09 09 09 09 09 09 |sole.c..|........|
|00000150| 2a 2f 0d 2f 2a 20 20 43 | 6f 70 79 72 69 67 68 74 |*/./* C|opyright|
|00000160| 2e 3a 20 a9 43 6f 70 79 | 72 69 67 68 74 20 31 39 |.: .Copy|right 19|
|00000170| 39 34 20 62 79 20 6d 65 | 74 72 6f 77 65 72 6b 73 |94 by me|trowerks|
|00000180| 20 69 6e 63 2e 20 41 6c | 6c 20 72 69 67 68 74 73 | inc. Al|l rights|
|00000190| 20 72 65 73 65 72 76 65 | 64 2e 20 2a 2f 0d 2f 2a | reserve|d. */./*|
|000001a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001e0| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 0d 23 69 66 6e 64 65 |*******/|..#ifnde|
|000001f0| 66 20 5f 5f 43 4f 4e 53 | 4f 4c 45 5f 5f 0d 23 69 |f __CONS|OLE__.#i|
|00000200| 6e 63 6c 75 64 65 20 3c | 63 6f 6e 73 6f 6c 65 2e |nclude <|console.|
|00000210| 68 3e 0d 23 65 6e 64 69 | 66 0d 0d 2f 2a 0d 20 2a |h>.#endi|f../*. *|
|00000220| 09 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 66 |.The fol|lowing f|
|00000230| 6f 75 72 20 66 75 6e 63 | 74 69 6f 6e 73 20 70 72 |our func|tions pr|
|00000240| 6f 76 69 64 65 20 74 68 | 65 20 55 49 20 66 6f 72 |ovide th|e UI for|
|00000250| 20 74 68 65 20 63 6f 6e | 73 6f 6c 65 20 70 61 63 | the con|sole pac|
|00000260| 6b 61 67 65 2e 0d 20 2a | 09 55 73 65 72 73 20 77 |kage.. *|.Users w|
|00000270| 69 73 68 69 6e 67 20 74 | 6f 20 72 65 70 6c 61 63 |ishing t|o replac|
|00000280| 65 20 53 49 4f 55 58 20 | 77 69 74 68 20 74 68 65 |e SIOUX |with the|
|00000290| 69 72 20 6f 77 6e 20 63 | 6f 6e 73 6f 6c 65 20 70 |ir own c|onsole p|
|000002a0| 61 63 6b 61 67 65 20 6e | 65 65 64 0d 20 2a 09 6f |ackage n|eed. *.o|
|000002b0| 6e 6c 79 20 70 72 6f 76 | 69 64 65 20 74 68 65 20 |nly prov|ide the |
|000002c0| 66 6f 75 72 20 66 75 6e | 63 74 69 6f 6e 73 20 62 |four fun|ctions b|
|000002d0| 65 6c 6f 77 20 69 6e 20 | 61 20 6c 69 62 72 61 72 |elow in |a librar|
|000002e0| 79 2e 0d 20 2a 2f 0d 0d | 2f 2a 0d 20 2a 09 65 78 |y.. */..|/*. *.ex|
|000002f0| 74 65 72 6e 20 73 68 6f | 72 74 20 49 6e 73 74 61 |tern sho|rt Insta|
|00000300| 6c 6c 43 6f 6e 73 6f 6c | 65 28 73 68 6f 72 74 20 |llConsol|e(short |
|00000310| 66 64 29 3b 0d 20 2a 0d | 20 2a 09 49 6e 73 74 61 |fd);. *.| *.Insta|
|00000320| 6c 6c 73 20 74 68 65 20 | 43 6f 6e 73 6f 6c 65 20 |lls the |Console |
|00000330| 70 61 63 6b 61 67 65 2c | 20 74 68 69 73 20 66 75 |package,| this fu|
|00000340| 6e 63 74 69 6f 6e 20 77 | 69 6c 6c 20 62 65 20 63 |nction w|ill be c|
|00000350| 61 6c 6c 65 64 20 72 69 | 67 68 74 0d 20 2a 09 62 |alled ri|ght. *.b|
|00000360| 65 66 6f 72 65 20 61 6e | 79 20 72 65 61 64 20 6f |efore an|y read o|
|00000370| 72 20 77 72 69 74 65 20 | 74 6f 20 6f 6e 65 20 6f |r write |to one o|
|00000380| 66 20 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 73 |f the st|andard s|
|00000390| 74 72 65 61 6d 73 2e 0d | 20 2a 0d 20 2a 09 73 68 |treams..| *. *.sh|
|000003a0| 6f 72 74 20 66 64 3a 09 | 09 54 68 65 20 73 74 72 |ort fd:.|.The str|
|000003b0| 65 61 6d 20 77 68 69 63 | 68 20 77 65 20 61 72 65 |eam whic|h we are|
|000003c0| 20 72 65 61 64 69 6e 67 | 2f 77 72 69 74 69 6e 67 | reading|/writing|
|000003d0| 20 74 6f 2f 66 72 6f 6d | 2e 0d 20 2a 09 72 65 74 | to/from|.. *.ret|
|000003e0| 75 72 6e 73 20 73 68 6f | 72 74 3a 09 30 20 6e 6f |urns sho|rt:.0 no|
|000003f0| 20 65 72 72 6f 72 20 6f | 63 63 75 72 72 65 64 2c | error o|ccurred,|
|00000400| 20 61 6e 79 74 68 69 6e | 67 20 65 6c 73 65 20 65 | anythin|g else e|
|00000410| 72 72 6f 72 2e 0d 20 2a | 2f 0d 0d 73 68 6f 72 74 |rror.. *|/..short|
|00000420| 20 49 6e 73 74 61 6c 6c | 43 6f 6e 73 6f 6c 65 28 | Install|Console(|
|00000430| 73 68 6f 72 74 20 66 64 | 29 0d 7b 0d 23 70 72 61 |short fd|).{.#pra|
|00000440| 67 6d 61 20 75 6e 75 73 | 65 64 20 28 66 64 29 0d |gma unus|ed (fd).|
|00000450| 0d 09 72 65 74 75 72 6e | 20 30 3b 0d 7d 0d 0d 2f |..return| 0;.}../|
|00000460| 2a 0d 20 2a 09 65 78 74 | 65 72 6e 20 76 6f 69 64 |*. *.ext|ern void|
|00000470| 20 52 65 6d 6f 76 65 43 | 6f 6e 73 6f 6c 65 28 76 | RemoveC|onsole(v|
|00000480| 6f 69 64 29 3b 0d 20 2a | 0d 20 2a 09 52 65 6d 6f |oid);. *|. *.Remo|
|00000490| 76 65 73 20 74 68 65 20 | 63 6f 6e 73 6f 6c 65 20 |ves the |console |
|000004a0| 70 61 63 6b 61 67 65 2e | 20 20 49 74 20 69 73 20 |package.| It is |
|000004b0| 63 61 6c 6c 65 64 20 61 | 66 74 65 72 20 61 6c 6c |called a|fter all|
|000004c0| 20 6f 74 68 65 72 20 73 | 74 72 65 61 6d 73 0d 20 | other s|treams. |
|000004d0| 2a 09 61 72 65 20 63 6c | 6f 73 65 64 20 61 6e 64 |*.are cl|osed and|
|000004e0| 20 65 78 69 74 20 66 75 | 6e 63 74 69 6f 6e 73 20 | exit fu|nctions |
|000004f0| 28 69 6e 73 74 61 6c 6c | 65 64 20 62 79 20 65 69 |(install|ed by ei|
|00000500| 74 68 65 72 20 61 74 65 | 78 69 74 20 6f 72 20 5f |ther ate|xit or _|
|00000510| 61 74 65 78 69 74 29 0d | 20 2a 09 68 61 76 65 20 |atexit).| *.have |
|00000520| 62 65 65 6e 20 63 61 6c | 6c 65 64 2e 20 20 53 69 |been cal|led. Si|
|00000530| 6e 63 65 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |nce ther|e is no |
|00000540| 77 61 79 20 74 6f 20 72 | 65 63 6f 76 65 72 20 66 |way to r|ecover f|
|00000550| 72 6f 6d 20 61 6e 20 65 | 72 72 6f 72 2c 0d 20 2a |rom an e|rror,. *|
|00000560| 09 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 64 |.this fu|nction d|
|00000570| 6f 65 73 6e 27 74 20 6e | 65 65 64 20 74 6f 20 72 |oesn't n|eed to r|
|00000580| 65 74 75 72 6e 20 61 6e | 79 2e 0d 20 2a 2f 0d 0d |eturn an|y.. */..|
|00000590| 76 6f 69 64 20 52 65 6d | 6f 76 65 43 6f 6e 73 6f |void Rem|oveConso|
|000005a0| 6c 65 28 76 6f 69 64 29 | 0d 7b 0d 7d 0d 0d 2f 2a |le(void)|.{.}../*|
|000005b0| 0d 20 2a 09 65 78 74 65 | 72 6e 20 6c 6f 6e 67 20 |. *.exte|rn long |
|000005c0| 57 72 69 74 65 43 68 61 | 72 73 54 6f 43 6f 6e 73 |WriteCha|rsToCons|
|000005d0| 6f 6c 65 28 63 68 61 72 | 20 2a 62 75 66 66 65 72 |ole(char| *buffer|
|000005e0| 2c 20 6c 6f 6e 67 20 6e | 29 3b 0d 20 2a 0d 20 2a |, long n|);. *. *|
|000005f0| 09 57 72 69 74 65 73 20 | 61 20 73 74 72 65 61 6d |.Writes |a stream|
|00000600| 20 6f 66 20 6f 75 74 70 | 75 74 20 74 6f 20 74 68 | of outp|ut to th|
|00000610| 65 20 43 6f 6e 73 6f 6c | 65 20 77 69 6e 64 6f 77 |e Consol|e window|
|00000620| 2e 20 20 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |. This |function|
|00000630| 20 69 73 0d 20 2a 09 63 | 61 6c 6c 65 64 20 62 79 | is. *.c|alled by|
|00000640| 20 77 72 69 74 65 2e 0d | 20 2a 0d 20 2a 09 63 68 | write..| *. *.ch|
|00000650| 61 72 20 2a 62 75 66 66 | 65 72 3a 09 50 6f 69 6e |ar *buff|er:.Poin|
|00000660| 74 65 72 20 74 6f 20 74 | 68 65 20 62 75 66 66 65 |ter to t|he buffe|
|00000670| 72 20 74 6f 20 62 65 20 | 77 72 69 74 74 65 6e 2e |r to be |written.|
|00000680| 0d 20 2a 09 6c 6f 6e 67 | 20 6e 3a 09 09 09 54 68 |. *.long| n:...Th|
|00000690| 65 20 6c 65 6e 67 74 68 | 20 6f 66 20 74 68 65 20 |e length| of the |
|000006a0| 62 75 66 66 65 72 20 74 | 6f 20 62 65 20 77 72 69 |buffer t|o be wri|
|000006b0| 74 74 65 6e 2e 0d 20 2a | 09 72 65 74 75 72 6e 73 |tten.. *|.returns|
|000006c0| 20 73 68 6f 72 74 3a 09 | 41 63 74 75 61 6c 20 6e | short:.|Actual n|
|000006d0| 75 6d 62 65 72 20 6f 66 | 20 63 68 61 72 61 63 74 |umber of| charact|
|000006e0| 65 72 73 20 77 72 69 74 | 74 65 6e 20 74 6f 20 74 |ers writ|ten to t|
|000006f0| 68 65 20 73 74 72 65 61 | 6d 2c 0d 20 2a 09 09 09 |he strea|m,. *...|
|00000700| 09 09 2d 31 20 69 66 20 | 61 6e 20 65 72 72 6f 72 |..-1 if |an error|
|00000710| 20 6f 63 63 75 72 72 65 | 64 2e 0d 20 2a 2f 0d 0d | occurre|d.. */..|
|00000720| 6c 6f 6e 67 20 57 72 69 | 74 65 43 68 61 72 73 54 |long Wri|teCharsT|
|00000730| 6f 43 6f 6e 73 6f 6c 65 | 28 63 68 61 72 20 2a 62 |oConsole|(char *b|
|00000740| 75 66 66 65 72 2c 20 6c | 6f 6e 67 20 6e 29 0d 7b |uffer, l|ong n).{|
|00000750| 0d 23 70 72 61 67 6d 61 | 20 75 6e 75 73 65 64 20 |.#pragma| unused |
|00000760| 28 62 75 66 66 65 72 2c | 20 6e 29 0d 0d 09 72 65 |(buffer,| n)...re|
|00000770| 74 75 72 6e 20 30 3b 0d | 7d 0d 0d 2f 2a 0d 20 2a |turn 0;.|}../*. *|
|00000780| 09 65 78 74 65 72 6e 20 | 6c 6f 6e 67 20 52 65 61 |.extern |long Rea|
|00000790| 64 43 68 61 72 73 46 72 | 6f 6d 43 6f 6e 73 6f 6c |dCharsFr|omConsol|
|000007a0| 65 28 63 68 61 72 20 2a | 62 75 66 66 65 72 2c 20 |e(char *|buffer, |
|000007b0| 6c 6f 6e 67 20 6e 29 3b | 0d 20 2a 0d 20 2a 09 52 |long n);|. *. *.R|
|000007c0| 65 61 64 73 20 66 72 6f | 6d 20 74 68 65 20 43 6f |eads fro|m the Co|
|000007d0| 6e 73 6f 6c 65 20 69 6e | 74 6f 20 61 20 62 75 66 |nsole in|to a buf|
|000007e0| 66 65 72 2e 20 20 54 68 | 69 73 20 66 75 6e 63 74 |fer. Th|is funct|
|000007f0| 69 6f 6e 20 69 73 20 63 | 61 6c 6c 65 64 20 62 79 |ion is c|alled by|
|00000800| 0d 20 2a 09 72 65 61 64 | 2e 0d 20 2a 0d 20 2a 09 |. *.read|.. *. *.|
|00000810| 63 68 61 72 20 2a 62 75 | 66 66 65 72 3a 09 50 6f |char *bu|ffer:.Po|
|00000820| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 62 75 66 |inter to| the buf|
|00000830| 66 65 72 20 77 68 69 63 | 68 20 77 69 6c 6c 20 72 |fer whic|h will r|
|00000840| 65 63 69 65 76 65 20 74 | 68 65 20 69 6e 70 75 74 |ecieve t|he input|
|00000850| 2e 0d 20 2a 09 6c 6f 6e | 67 20 6e 3a 09 09 09 54 |.. *.lon|g n:...T|
|00000860| 68 65 20 6d 61 78 69 6d | 75 6d 20 61 6d 6f 75 6e |he maxim|um amoun|
|00000870| 74 20 6f 66 20 63 68 61 | 72 61 63 74 65 72 73 20 |t of cha|racters |
|00000880| 74 6f 20 62 65 20 72 65 | 61 64 20 28 73 69 7a 65 |to be re|ad (size|
|00000890| 20 6f 66 0d 20 2a 09 09 | 09 09 09 62 75 66 66 65 | of. *..|...buffe|
|000008a0| 72 29 2e 0d 20 2a 09 72 | 65 74 75 72 6e 73 20 73 |r).. *.r|eturns s|
|000008b0| 68 6f 72 74 3a 09 41 63 | 74 75 61 6c 20 6e 75 6d |hort:.Ac|tual num|
|000008c0| 62 65 72 20 6f 66 20 63 | 68 61 72 61 63 74 65 72 |ber of c|haracter|
|000008d0| 73 20 72 65 61 64 20 66 | 72 6f 6d 20 74 68 65 20 |s read f|rom the |
|000008e0| 73 74 72 65 61 6d 2c 0d | 20 2a 09 09 09 09 09 2d |stream,.| *.....-|
|000008f0| 31 20 69 66 20 61 6e 20 | 65 72 72 6f 72 20 6f 63 |1 if an |error oc|
|00000900| 63 75 72 72 65 64 2e 0d | 20 2a 2f 0d 0d 6c 6f 6e |curred..| */..lon|
|00000910| 67 20 52 65 61 64 43 68 | 61 72 73 46 72 6f 6d 43 |g ReadCh|arsFromC|
|00000920| 6f 6e 73 6f 6c 65 28 63 | 68 61 72 20 2a 62 75 66 |onsole(c|har *buf|
|00000930| 66 65 72 2c 20 6c 6f 6e | 67 20 6e 29 0d 7b 0d 23 |fer, lon|g n).{.#|
|00000940| 70 72 61 67 6d 61 20 75 | 6e 75 73 65 64 20 28 62 |pragma u|nused (b|
|00000950| 75 66 66 65 72 2c 20 6e | 29 0d 0d 09 72 65 74 75 |uffer, n|)...retu|
|00000960| 72 6e 20 30 3b 0d 7d 0d | 0d 2f 2a 0d 20 2a 09 65 |rn 0;.}.|./*. *.e|
|00000970| 78 74 65 72 6e 20 63 68 | 61 72 20 2a 5f 5f 74 74 |xtern ch|ar *__tt|
|00000980| 79 6e 61 6d 65 28 6c 6f | 6e 67 20 66 69 6c 64 65 |yname(lo|ng filde|
|00000990| 73 29 3b 0d 20 2a 0d 20 | 2a 09 52 65 74 75 72 6e |s);. *. |*.Return|
|000009a0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|000009b0| 20 63 75 72 72 65 6e 74 | 20 74 65 72 6d 69 6e 61 | current| termina|
|000009c0| 6c 20 28 6f 6e 6c 79 20 | 76 61 6c 69 64 20 74 65 |l (only |valid te|
|000009d0| 72 6d 69 6e 61 6c 73 20 | 61 72 65 0d 20 2a 09 74 |rminals |are. *.t|
|000009e0| 68 65 20 73 74 61 6e 64 | 61 72 64 20 73 74 72 65 |he stand|ard stre|
|000009f0| 61 6d 20 28 69 65 20 73 | 74 64 69 6e 2c 20 73 74 |am (ie s|tdin, st|
|00000a00| 64 6f 75 74 2c 20 73 74 | 64 65 72 72 29 2e 0d 20 |dout, st|derr).. |
|00000a10| 2a 0d 20 2a 09 6c 6f 6e | 67 20 66 69 6c 64 65 73 |*. *.lon|g fildes|
|00000a20| 3a 09 54 68 65 20 73 74 | 72 65 61 6d 20 74 6f 20 |:.The st|ream to |
|00000a30| 71 75 65 72 79 2e 0d 20 | 2a 0d 20 2a 09 72 65 74 |query.. |*. *.ret|
|00000a40| 75 72 6e 73 20 63 68 61 | 72 2a 3a 09 41 20 70 6f |urns cha|r*:.A po|
|00000a50| 69 6e 74 65 72 20 74 6f | 20 73 74 61 74 69 63 20 |inter to| static |
|00000a60| 67 6c 6f 62 61 6c 20 64 | 61 74 61 20 77 68 69 63 |global d|ata whic|
|00000a70| 68 20 63 6f 6e 74 61 69 | 6e 73 20 61 20 43 20 73 |h contai|ns a C s|
|00000a80| 74 72 69 6e 67 0d 20 2a | 09 09 09 09 09 6f 72 20 |tring. *|.....or |
|00000a90| 4e 55 4c 4c 20 69 66 20 | 74 68 65 20 73 74 72 65 |NULL if |the stre|
|00000aa0| 61 6d 20 69 73 20 6e 6f | 74 20 76 61 6c 69 64 2e |am is no|t valid.|
|00000ab0| 0d 20 2a 2f 0d 0d 65 78 | 74 65 72 6e 20 63 68 61 |. */..ex|tern cha|
|00000ac0| 72 20 2a 5f 5f 74 74 79 | 6e 61 6d 65 28 6c 6f 6e |r *__tty|name(lon|
|00000ad0| 67 20 66 69 6c 64 65 73 | 29 0d 7b 0d 23 70 72 61 |g fildes|).{.#pra|
|00000ae0| 67 6d 61 20 75 6e 75 73 | 65 64 20 28 66 69 6c 64 |gma unus|ed (fild|
|00000af0| 65 73 29 0d 09 2f 2a 20 | 61 6c 6c 20 73 74 72 65 |es)../* |all stre|
|00000b00| 61 6d 73 20 68 61 76 65 | 20 74 68 65 20 73 61 6d |ams have| the sam|
|00000b10| 65 20 6e 61 6d 65 20 2a | 2f 0d 09 73 74 61 74 69 |e name *|/..stati|
|00000b20| 63 20 63 68 61 72 20 2a | 5f 5f 64 65 76 69 63 65 |c char *|__device|
|00000b30| 6e 61 6d 65 20 3d 20 22 | 6e 75 6c 6c 20 64 65 76 |name = "|null dev|
|00000b40| 69 63 65 22 3b 0d 0d 09 | 69 66 20 28 66 69 6c 64 |ice";...|if (fild|
|00000b50| 65 73 20 3e 3d 20 30 20 | 26 26 20 66 69 6c 64 65 |es >= 0 |&& filde|
|00000b60| 73 20 3c 3d 20 32 29 0d | 09 09 72 65 74 75 72 6e |s <= 2).|..return|
|00000b70| 20 28 5f 5f 64 65 76 69 | 63 65 6e 61 6d 65 29 3b | (__devi|cename);|
|00000b80| 0d 0d 09 72 65 74 75 72 | 6e 20 28 30 4c 29 3b 0d |...retur|n (0L);.|
|00000b90| 7d 0d 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000c10| 0d 09 20 0d 09 09 2f 2a | 20 6e 65 61 72 20 75 6e |.. .../*| near un|
|00000c20| 69 6e 74 69 61 6c 69 7a | 65 64 20 64 61 74 61 20 |intializ|ed data |
|00000c30| 0f 63 6f 6e 73 6f 6c 65 | 2e 73 74 75 62 73 2e 63 |.console|.stubs.c|
|00000c40| 02 00 00 00 54 45 58 54 | 4d 4d 43 43 01 00 ff ff |....TEXT|MMCC....|
|00000c50| 00 00 54 45 58 54 4d 4d | 43 43 01 00 ff ff ff ff |..TEXTMM|CC......|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 aa f8 3e 76 00 00 | 0b 13 00 00 01 9a 2d 3e |....>v..|......->|
|00000c80| 6f 62 6a 65 63 74 2d 3e | 6c 69 6e 6b 73 3b 20 6f |object->|links; o|
|00000c90| 6c 3b 20 6f 6c 3d 6f 6c | 2d 3e 6e 65 78 74 29 20 |l; ol=ol|->next) |
|00000ca0| 73 77 69 74 63 68 28 6f | 6c 2d 3e 74 79 70 65 29 |switch(o|l->type)|
|00000cb0| 0d 09 09 09 7b 0d 09 09 | 09 63 61 73 65 20 48 55 |....{...|.case HU|
|00000cc0| 4e 4b 5f 58 52 45 46 5f | 33 32 42 49 54 3a 09 09 |NK_XREF_|32BIT:..|
|00000cd0| 64 61 74 61 64 61 74 61 | 78 72 65 66 73 2b 3d 6f |datadata|xrefs+=o|
|00000ce0| 6c 2d 3e 6e 75 6d 6c 69 | 6e 6b 73 3b 20 62 72 65 |l->numli|nks; bre|
|00000cf0| 61 6b 3b 0d 09 09 09 63 | 61 73 65 20 48 55 4e 4b |ak;....c|ase HUNK|
|00000d00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 03 | 00 04 00 3d 00 0a 01 d7 |........|...=....|
|00000d30| 02 80 00 3d 00 0a 01 d7 | 02 80 ab f4 c8 2f 00 00 |...=....|...../..|
|00000d40| 00 00 00 00 0b 13 00 00 | 08 68 01 00 00 00 00 04 |........|.h......|
|00000d50| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000d60| 00 00 00 46 01 08 26 58 | 10 88 00 00 00 1c 00 46 |...F..&X|.......F|
|00000d70| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000d80| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000d90| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+